<template>
	<view class="example-body" style="height: 100vh;">
		<my-steps v-if="accountInfo.length" :options="accountInfo" active-color="#3080FB" :active="accountInfo.length - 1"
			direction="column" />
			<view class="bgwhite" v-else>
				<van-empty description="暂无台账记录"></van-empty>
			</view>
		<!-- <button class="account-btn">上传台账</button> -->
	</view>
</template>

<script>
	import vanEmpty from '@/wxcomponents/vant/dist/empty'
	import mySteps from '@/fireGridCheck/myComponents/my-steps/my-steps'
	import dayjs from 'dayjs'
	export default {
		components: {
			mySteps,
			vanEmpty
		},
		data() {
			return {
				accountInfo: []
			}
		},
		onLoad(option) {
			
		},
		onShow() {
			
		},
		methods: {
			getRecord(id) {
				this.$http.post('gridSystem/cpBook/list', {检查点id: id}).then(res => {
					if(res.code === 10000) {
						console.log('账', res)
						let that = this
						res.data.list.forEach(item => {
							item.时间 = dayjs(item.时间).format("YYYY-MM-DD HH:mm:ss")
							item.附件图片 = []
							item.附件.forEach(x => {
								if (x) {
									that.$funs.downloadImage(x, (res) => {
										item.附件图片.push(res.fileData)
									})
								}
						
							})
						})
						this.accountInfo = res.data.list
					}
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	
	/* #ifndef APP-NVUE */
	page {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		background-color: #f5f5f5;
		min-height: 100%;
		height: auto;
	}
	/* #endif */
	// view {
	// 	font-size: 28rpx;
	// 	line-height: inherit;
	// }
	
	.example {
		padding: 0 30rpx 30rpx;
	}
	
	.example-info {
		padding: 30rpx;
		color: #3b4144;
		background: #ffffff;
	}
	
	.example-body {
		height: auto !important;
		// padding-bottom: 80rpx;
		margin-bottom: 80rpx;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding: 0;
		font-size: 14rpx;
		background-color: #ffffff;
	}
	
	
	.status-btn {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
		justify-content: center;
		height: 92rpx;
		margin: 30rpx;
		background-color: #007AFF;
	}
	
	.example-body {
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
		padding: 15px;
		flex-direction: row;
	}
</style>
